package Control;

import GUI.Utils;

public class CatchEpisode implements Visualizable{
	
	private Episode episode;
	private CatchPhrase catchPhrase;
	private int count;
	
	public CatchEpisode() {
		super();
		
	}

	public CatchEpisode(Episode episode, CatchPhrase catchPhrase, int count) {
		super();
		this.episode = episode;
		this.catchPhrase = catchPhrase;
		this.count = count;
	}

	public Episode getEpisode() {
		return episode;
	}

	public void setEpisode(Episode episode) {
		this.episode = episode;
	}

	public CatchPhrase getCatchPhrase() {
		return catchPhrase;
	}

	public void setCatchPhrase(CatchPhrase catchPhrase) {
		this.catchPhrase = catchPhrase;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	@Override
	public String valueLabel() {
		return catchPhrase.getPhrase();
	}

	@Override
	public Integer value() {
		return count;
	}

	@Override
	public Integer time() {
		return episode.getNumEpisode();
	}

	@Override
	public String timeLabel() {
		return episode.getName();
	}

	@Override
	public Integer absoluteTime() {
		return Utils.episodes.indexOf(episode);
	}
	
	
	
}
